package cn.juque.datapipeline.vo.userinfo;

import cn.juque.datapipeline.vo.BaseVO;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author JUQUE
 * @version 1.0.0
 * <ul>
 *  <li>simple-generator</li>
 *  <li>用户信息</li>
 * </ul>
 * @date 2023-03-15 17:18:21
 **/
@Data
public class UserInfoAddVO extends BaseVO {

    /**
     * 用户名
     */
    @NotEmpty(message = "用户名不能为空")
    @Size(message = "用户名不能超过{max}个字符", max = 30)
    private String userName;

    /**
     * 登录名
     */
    @NotEmpty(message = "登录名不能为空")
    @Size(message = "登录名不能超过{max}个字符", max = 100)
    private String loginName;

    /**
     * 密码
     */
    @NotEmpty(message = "密码不能为空")
    @Size(message = "密码不能超过{max}个字符", max = 16)
    private String password;

    /**
     * 用户状态。1-启用；2-禁用
     */
    @NotNull(message = "用户状态不能为空")
    @Range(min = 0, max = 99, message = "用户状态必须在{min}-{max}之间")
    private Integer userStatus;
}
